<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>服务保障信息表单</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style> 
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/css.css'/>" />
<script type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script>
	function ontabclick(srctbl,code){
		var tblTab = document.getElementById("tblTab");
		var tds = document.getElementsByTagName("td");
		 
		var tbls = tblTab.getElementsByTagName("table"); 
		var len = tbls.length;
	 
		for(i=0;i<len;i++){
			var tbl = tbls[i];
			if(null==tbl) return ; 
			var tds = tbl.getElementsByTagName("TD"); 
			 
			
			if(srctbl.id == tds[0].id){
				tds[0].className = "redB";
				 
			}else{
				tds[0].className="";
			}
			 
		} 
		
		var workFlow = '&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>&vipFlag=<c:out value="${param.vipId}"/>';		
		if(1==code){ 
		
			document.iframe.location="./serverProtect.html?flagType=<c:out value="${param.type}"/>&protectType=1"+workFlow;
		}else if(2==code){
			document.iframe.location="./serverProtect.html?flagType=<c:out value="${param.type}"/>&protectType=2"+workFlow;
		}else if(3==code){
			document.iframe.location="./service.html?flagType=<c:out value="${param.type}"/>&taskId=<c:out value="${serverProtectForm.requestId}"/>&protectType=3"+workFlow;
		}else if(4==code){
			document.iframe.location="./serverProtect.html?flagType=<c:out value="${param.type}"/>&protectType=4"+workFlow;
		}else if(5==code){
			document.iframe.location="./serverProtect.html?flagType=<c:out value="${param.type}"/>&protectType=5"+workFlow;
		}				
		 
	}
	
	function onload(){
		var processId = '<c:out value="${param.processinstid}"/>';

 		var type = 0;
 		<c:if test="${null ne param.type}">
			type = <c:out value="${param.type}"/>; 			
 		</c:if>

 		
		if(""!=processId){ 
		
 				ontabclick(document.all('td'+type),type);
 		
		}else return;
		
		 
	}
</script>
</head>

<body onload="onload()">
<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="31" class="titlebgcolor"><table width="189" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11">&nbsp;</td>
            <td width="26"><img src="images/form.gif" width="22" height="22" /></td>
            <td width="152">服务保障信息表单</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30" align="left" background="images/list_title_bg.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" valign="bottom">
					<input name="Submit" type="button" class="textarea" value="提交下一环节" onclick="window.location='./serverProtect.html?method=nextFlow'"/>
				</td>
              </tr>
            </table></td>
            <td width="6" align="right" valign="top"><img src="images/list_title_right.jpg" width="6" height="30" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width1="100%" align="left" valign="top" class="list_area_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">

              <tr>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="21%">&nbsp;</td>
                    <td width="1%">&nbsp;</td>
                    <td width="28%">&nbsp;</td>
                    <td width="10%">&nbsp;</td>
                    <td width="1%">&nbsp;</td>
                    <td width="39%">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="25" class="edit-title">航班号</td>
                    <td>&nbsp;</td>
                    <td align="left" class="brown33"><c:out value="${serverProtectForm.planeNo}"/></td>
                    <td class="edit-title">日期<br /></td>
                    <td>&nbsp;</td>
                    <td class="brown33"><c:out value="${serverProtectForm.flyDate}"/></td>
                  </tr>
        		<tr><td colspan="20">
        		
        		
        <table width="100%" border="1" cellpadding="0" cellspacing="0" class="list_bordercolor">
				<tr>
                	    <td class="list_font_title">旅客姓名 </td> 
                    	<td  class="list_font_title">职务</td>
                        <td  class="list_font_title">旅客类型</td>
						<td  class="list_font_title">PNR</td>
                                                                      
				</tr>
               <c:forEach items="${highList}" var="results">                 
                	<tr>
						<td class="list_font_area">&nbsp; <c:out value="${results.vipName}"/></td> 
						<td class="list_font_area">&nbsp; <c:out value="${results.vipMap}"/></td>
						<td class="list_font_area">&nbsp; <c:out value="${results.vipTypeName}"/></td>
						<td class="list_font_area">&nbsp; <c:out value="${results.pnrCode}"/></td>
                                   
					</tr>
                </c:forEach>                       	
		</table> </td></tr>       

                </table></td>
              </tr>
              <tr>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td width="1%" align="left" valign="top">&nbsp;</td>
                <td width="99%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="33" align="left" valign="top" background="images/tab_title_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="tblTab">
                      <tr>
                      <c:if test="${null==param.type || 1==param.type||2==param.type||3==param.type||4==param.type||5==param.type}">
                        <td width="3"><img src="images/tab_02_left.gif" width="3" height="33" /></td>
                        <td width="70" align="center" valign="top" background="images/tab_02_bg.gif" class="button01"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td align="center" valign="bottom" class="redB" id="td1" onclick="ontabclick(this,1)" style="cursor:hand">保障方案</td>
                            </tr>
                        </table></td>
                      </c:if>
                    <c:if test="${null==param.type ||2==param.type||3==param.type||4==param.type||5==param.type}">
                        <td width="6"><img src="images/tab_02_right.gif" width="3" height="33" /><img src="images/tab_02_left.gif" width="3" height="33" /></td>
                        <td width="70" align="center" valign="top" background="images/tab_02_bg.gif" class="button01"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" valign="bottom" id="td2" onclick="ontabclick(this,2)" style="cursor:hand">审核信息</td>
                          </tr>
                        </table></td>
					</c:if>
					<c:if test="${null==param.type ||3==param.type||4==param.type||5==param.type}">					                      
                        <td width="6"><img src="images/tab_02_right.gif" width="3" height="33" /><img src="images/tab_02_left.gif" width="3" height="33" /></td>
                        <td width="80" align="center" valign="top" background="images/tab_02_bg.gif" class="button01"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" valign="bottom" id="td3" onclick="ontabclick(this,3)" style="cursor:hand">制定服务工作</td>
                          </tr>
                        </table></td>
                      </c:if>
					<c:if test="${null==param.type ||4==param.type||5==param.type}">					                      
                        <td width="6"><img src="images/tab_02_right.gif" width="3" height="33" /><img src="images/tab_02_left.gif" width="3" height="33" /></td>
                        <td width="70" align="center" valign="top" background="images/tab_02_bg.gif" class="button01"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" valign="bottom" id="td4" onclick="ontabclick(this,4)" style="cursor:hand">航班前记录</td>
                          </tr>
                        </table></td>
                      </c:if>
                      <c:if test="${null==param.type ||5==param.type}">					                      
                        <td width="6"><img src="images/tab_02_right.gif" width="3" height="33" /><img src="images/tab_02_left.gif" width="3" height="33" /></td>
                        <td width="70" align="center" valign="top" background="images/tab_02_bg.gif" class="button01"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" valign="bottom"  id="td5" onclick="ontabclick(this,5)" style="cursor:hand">航班后记录</td>
                          </tr>
                        </table></td>
                        <td width="6"><img src="images/tab_02_right.gif" width="3" height="33" /></td>
                       </c:if>
                        <td>&nbsp;</td>
                        <td width="11" class="black12">&nbsp;</td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="center" valign="center" height=250>
			<iframe name="iframe"   border=0  width=100% height=100%></iframe>
		    </td>
                  </tr>
                  
                </table></td>
              </tr>


            </table></td>
            <td width="8" align="left" valign="top" background="images/list_area_right.jpg">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="4" align="left" valign="top"><img src="images/list_bottom_left.jpg" width="4" height="8" /></td>
            <td align="left" valign="top"><img src="images/list_bottom_middle.jpg" width="100%" height="8" /></td>
            <td width="6" align="right" valign="top"><img src="images/list_bottom_right.jpg" width="6" height="8" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

